import {computed} from '../composition/reactivity'
import {classnames} from "../utils/classnames";
import type {MultipleClass} from "../type";

export default function useClass<T extends () => MultipleClass>(fn: T) {
    return computed(() => classnames(fn()))
}
